		function loadSessionData(){
		
			var link="/get_sessiondata";
			var sessionXML=loadXMLDoc(link);
			
			var currentuser;
			var currentrole;
			var currentproject;
			
			currentuser=sessionXML.getElementsByTagName("username")[0].childNodes[0].nodeValue;
			currentrole=sessionXML.getElementsByTagName("role")[0].childNodes[0].nodeValue;
			currentproject=sessionXML.getElementsByTagName("name")[0].childNodes[0].nodeValue;
			
			document.getElementById("current_user").innerHTML="<i>"+currentuser+"</i>";
			document.getElementById("current_role").innerHTML="<i>"+currentrole+"</i>";
			document.getElementById("current_project").innerHTML="<i>"+currentproject+"</i>";
		}
		
		function generateMenu(){
			
			var link="/menuLink";
			var menuXML=loadXMLDoc(link);
			
			var buttons=menuXML.getElementsByTagName("elemento");
			var i;
			var newText="";
			
			for(i=0;i<buttons.length;i++){
				nome=menuXML.getElementsByTagName("nome")[i].childNodes[0].nodeValue;
				link=menuXML.getElementsByTagName("link")[i].childNodes[0].nodeValue;
				
				newText+=('<li><a href="'+link+'" class="menubutton">'+nome+'</a></li>');	
			}
			document.getElementById("menu").innerHTML = newText;
		}